import crypto from "crypto-js";
export function generatesignature() {
  const clientSecret = "xx.xx.xx";
  const timestamp = Math.floor(Date.now() / 1000);
  const hmac = crypto.HmacSHA256(timestamp.toString(), clientSecret);
  // hmac.update(timestamp.toString());
  const signature = hmac.toString(crypto.enc.Hex);
  return {
    timestampStr: timestamp,
    signature: signature
  };
}
